﻿using FluentValidation;
using Sgr.DataCategories.Application.Commands.DataCategoryItem;

namespace Sgr.DataCategories.Application.Validations.DataCategoryItem
{
    public class DeleteCategpryItemCommandValidator : AbstractValidator<DeleteCategpryItemCommand>
    {
        public DeleteCategpryItemCommandValidator()
        {
            RuleFor(command => command.Id)
                .GreaterThan(0).WithMessage("ID必须大于0");
        }
    }
}